package com.lisn.roomlib.FileInfo;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.io.Serializable;

/**
 * @author : lishan
 * @e-mail : cnlishan@163.com
 * @date : 2020/8/12 3:51 PM
 * @desc :
 */

@Entity(tableName = "FileInfo")
public class FileInfo implements Serializable {
    @PrimaryKey(autoGenerate = true)
    public Long id;

    @NonNull
    public String name;

    public String path;
    public String time;
    public String type;

    public Integer age;
    public Integer age1;
    public Integer age2;

    public String thumbnail;

    @Ignore
    @Override
    public String toString() {
        return "FileInfo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", path='" + path + '\'' +
                ", time='" + time + '\'' +
                ", type='" + type + '\'' +
                ", age=" + age +
                ", age1=" + age1 +
                ", age2=" + age2 +
                ", thumbnail='" + thumbnail + '\'' +
                '}';
    }
}
